#include <stdio.h>
#include <stdlib.h>

void reversearray(int arr[], int n);

int main()
{
	int arr[] = {45,67,89,4,3,101}
	int n=6;
	reversearray(arr, 8);
	printf("%d", arr[]);
	return 0;
}

/*====================*/
void reversearray(int arr[], int n)
{
	int i;
	int temp;
	temp = arr[n-1];
	for(i=0;i<n;i++)
	{
		j=arr[i];
		arr[n-1]=j;

	}
	arr[0]=temp;
	return;
}